package org.utils.web.adf12.bindings;

import java.util.List;

public class OperationResultTO {
    
    private Object result;
    private List<Throwable> errors;

    public void setResult(Object result) {
        this.result = result;
    }

    public OperationResultTO(Object result, List<Throwable>  errors) {
        super();
        this.result = result;
        this.errors = errors;
    }

    public Boolean hasErrors(){
        return errors != null && !this.errors.isEmpty();
    }


    public Object getResult() {
        return result;
    }

    public void setErrors(List<Throwable>  errors) {
        this.errors = errors;
    }

    public List<Throwable> getErrors() {
        return errors;
    }

    public OperationResultTO() {
        super();
    }
}
